package cursojava.usestatic;

public class StaticDemo {
	
	public static final String name;
	public static final String apellido = "Perez";

    {
        System.out.println("HOLA");
    }
    
    {
        System.out.println("2do HOLA");
    }
    
    static {
    	name = "NAME...";
    	System.out.println("-----------------");
    	System.out.println("Bloque static...");
		System.out.println(name);
		System.out.println(apellido);
		System.out.println("-----------------");
    }
    
    public StaticDemo(){
    	System.out.println("contructor sin argumento");
    }
    
    public StaticDemo(String msg){
    	System.out.println("contructor con argumento : "+ msg);
    }
    
    
    public static void main(String[] args) {
        System.out.println("INICIO");

        StaticDemo s = new StaticDemo();
        StaticDemo s2 = new StaticDemo("HELLO..");
    }

}
